﻿using Microsoft.AspNet.Identity.EntityFramework;
using System.Collections.Generic;
using IEstate.Core.Models;

namespace IEstate.Web.Models
{
    // You can add profile data for the user by adding more properties to your ApplicationUser class
    public class ApplicationUser : IdentityUser
    {
        // public int? userCode { get; set; }
        // public int ID { get; set; }

        // public string customCode { get; set; }

        public string FirstName { get; set; }
        public string LastName { get; set; }
        public string Email { get; set; }
        public string Phone { get; set; }
        public int? userCode { get; set; }

        public List<Estate> Estates { get; set; }
    }

    public class ApplicationDbContext : IdentityDbContext<ApplicationUser>
    {
        public ApplicationDbContext()
            : base("DefaultConnection")
        {
        }
    }
}